package com.zjy.heath_ms.configure;

import com.zjy.heath_ms.configure.config.AliyunOSSConfig;
import com.zjy.heath_ms.utils.AliyunOSSUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description 阿里云OSS对象存储配置
 * @Date 2023/9/15 9:22
 * @Version 1.0
 */
@Configuration
public class AliyunOSSConfigure {
    @Autowired
    private AliyunOSSConfig aliyunOSSConfig;

    @Bean
    public AliyunOSSUtil ossUtil() {
        return new AliyunOSSUtil(aliyunOSSConfig);
    }
}
